﻿using WebApiClientCore;
using WebApiClientCore.Attributes;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Auth;

namespace BPM.Web.Shared.Service;

[TokenFilter]
public interface IOpLogClient : IHttpApi
{
    /// <summary>
    /// 分页查询操作日志
    /// </summary>
    /// <param name="body"></param>
    /// <param name="token"></param>
    /// <returns></returns>
    [HttpGet("sysOpLog/page")]
    ITask<XnRestfulResult<PageResult<OpLogOutput>>> PageAsync(OpLogPageInput body, CancellationToken token = default);

    /// <summary>
    /// 清空操作日志
    /// </summary>
    /// <param name="token"></param>
    /// <returns></returns>
    [HttpPost("sysOpLog/delete")]
    ITask<XnRestfulResult<string>> DeleteAsync(CancellationToken token = default);
}
